package com.zq.zqmanager.service;

import com.zq.zqmanager.dao.CatDAO;
import com.zq.zqmanager.entity.Cat;
import com.zq.zqmanager.mapper.CatMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: zqmanager
 * @Date: 2020/2/24 18:04
 * @Author: zhengqiang
 * @Description:
 */
@Service
public class CatService implements CatDAO {

    @Resource
    private CatMapper catMapper;

    @Override
    public List<Cat> getAll() {
        return catMapper.getAll();
    }

    @Override
    public void insert(Cat cat) {
        catMapper.insert(cat);
    }

    @Override
    public List<Cat> selectByParams(Cat cat) {
        return catMapper.selectByParams(cat);
    }
}
